import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {PreloadService} from "./preload.service";

const routes: Routes = [
    {path: '', loadChildren:'../router/bootstrap/bootstrap.module#BootstrapModule',data:{preload:true}},
    {
      path: '**', redirectTo: ""
    }
];

@NgModule({
  declarations: [
  ],
  imports: [
    RouterModule.forRoot(routes,{preloadingStrategy:PreloadService})
  ],
  providers: [PreloadService],
})

export class Routing {}
